﻿import { post, get } from "@/utils/hettpUtils/httpRequest";

export const consumptionhistoryColumns = [

  {
    title: "账号",
    dataIndex: "account",
  },
  {
    title: "充值金额",
    dataIndex: "amount",
    align: "center",
  },
  {
    title: "创建时间",
    dataIndex: "createTime",
    align: "center",
  },
  {
    title: "创建人",
    dataIndex: "createUser",
  },
 
  {
    title: "描述",
    dataIndex: "description",
  },

  {
    title: "修改时间",
    dataIndex: "updateTime",
    align: "center",
  },
  {
    title: "修改人",
    dataIndex: "updateUser",
  },
  {
    title: "所属用户ID",
    dataIndex: "userId",
  },

  {
    align: "center",
    title: "状态",
    dataIndex: "status",
    scopedSlots: { customRender: "status" },
  },

  {
    align: "center",
    title: "操作",
    dataIndex: "action",
    scopedSlots: { customRender: "action" },
  },
];

export const getConsumptionhistory = (parameter) =>
  get("api/consumptionhistory/get", parameter);

export const queryConsumptionhistoryPage = (parameter) =>
  post("api/consumptionhistory/pages", parameter);
